package cc.atliberty.structural.adapter.ex2;

/**
 * @Author 元宵
 * @url www.atliberty.cc
 * @Date 2023-10-31 07:35
 * @description: 适配器
 */
public class Adapter implements Target {

    private Adaptee adaptee;
    public Adapter(Adaptee adaptee) {
        super();
        this.adaptee = adaptee;
    }
    
    public void sampleOperation1() {
        adaptee.sampleOperation1();
    }

    @Override
    public void sampleOperation2() {
        System.out.println("2222222222222sampleOperation2222222222");
    }
}
